home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-10-20 | 1.5 KB | 64 lines |
- ' *****************************************************
- ' * *
- ' * This AMOS-program was made by Svante Danielsson *
- ' * *
- ' * Mail me at: til96sdn@mds.mdh.se *
- ' * *
- ' *****************************************************
-
- Degree
- XSIZE=63
- YSIZE=31
- STP=4
- GGR=3
-
-
- Screen Open 0,320,256,32,Lowres
- Curs Off
- Flash Off
- Cls 0
- Palette 0,$F0F,$F1E,$F2D,$F3C,$F4B,$F5A,$F69,$F78,$F88,$F97,$FA6,$FB5,$FC4,$FD5,$FE6,$FF7,$FF8,$FE9,$FDA,$FCB,$FBC,$FAD,$F9E,$F8F,$F7F,$F6F,$F5F,$F4F,$F3F,$F2F,$F1F
-
- For Y=0 To YSIZE Step STP
- For X=0 To XSIZE Step STP
- Ink Rnd(31)
- Bar X,Y To X+STP,Y+STP
- Inc CNT
- Next
- Next
-
- For N=0 To GGR
- For X=0 To XSIZE
- For Y=0 To YSIZE
-
- P1=Point(X-1,Y-1)
- P2=Point(X,Y-1)
- P3=Point(X+1,Y-1)
- P4=Point(X+1,Y)
- P5=Point(X+1,Y+1)
- P6=Point(X,Y+1)
- P7=Point(X-1,Y+1)
- P8=Point(X-1,Y)
-
- P9=Point(X-2,Y-2)
- P10=Point(X,Y-2)
- P11=Point(X+2,Y-2)
- P12=Point(X+2,Y)
- P13=Point(X+2,Y+2)
- P14=Point(X,Y+2)
- P15=Point(X-2,Y+2)
- P16=Point(X-2,Y)
-
- P17=Point(X,Y)
-
- P=(P1+P2+P3+P4+P5+P6+P7+P8+P9+P10+P11+P12+P13+P14+P15+P16+P17*4)/20
-
- If P<1 Then P=1
- If P>31 Then P=31
- Ink P
-
- Plot X,Y,P
-
- Next
- Next
- Next